import java.net.URL;
import java.util.ArrayList;
import java.util.List;



public class smbTest {


	public static final void main(String[] args)
    {
		smbConnect connector = new smbConnect();
		
		try {
			connector.login("10.238.85.21", "CORP\\kaiteo", "RT1617kr");
			
			List<String> testList = new ArrayList<String>();
			
			String path = "smb://10.238.85.21/group/data/bu_dashboard_dev/";

			
			testList = connector.getList(path);
			String fileName = connector.getFileName(path + testList.get(0) + "/");

			connector.copyFile(path + testList.get(0) + "/", "");
			
			System.out.println(testList);
			System.out.println(fileName);
			
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	

}




